package com.kuaiyin.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kuaiyin.dto.DepartmentsDTO;
import com.kuaiyin.entity.Departments;
import com.kuaiyin.utils.PageResult;
import com.kuaiyin.vo.DepartmentsVO;

import java.util.function.Consumer;

/**
 * <p>
 * 部门信息表（含完整审计字段） 服务类
 * </p>
 *
 * @author ng
 * @since 2025-04-22
 */
public interface IDepartmentsService extends IService<Departments> {

    void saveDepartments(DepartmentsDTO departmentsDTO);

    Boolean updateStatus(Integer id, Boolean status);


    void  removeById(Integer id);

    PageResult<DepartmentsVO> getDepartments(Integer page, Integer size, Consumer<LambdaQueryWrapper<Departments>> condition);

    void updatDepartments(Integer id, DepartmentsDTO departmentsDTO);
}
